<?php
// +----------------------------------------------------------------------
// | Tpli [ WE ONLY DO WHAT IS NECESSARY ]
// +----------------------------------------------------------------------
// | Author 荒年 < 931274989@qq.com >
// +----------------------------------------------------------------------
// | Explain 权限基类
// +----------------------------------------------------------------------

namespace app\admin\validate;
use think\Validate;
use think\Request;
class BaseValidate extends Validate
{
  public function goCheck()
  {
    $request = Request::instance();
    $params = $request->param();
    $result = $this->check($params);
    if (!$result)
    {
      return false;
    }
    else
    {
      return true;
    }
  }

  //空值验证
  protected function isNotEmpty($value,$rule='',$data='',$field='')
  {
    if (empty($value)) {
      return false;
    }
    else
    {
      return true;
    }
  }

}
?>